<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<link rel="stylesheet" type="text/css" href="styles/style.css"/>
	<link rel="stylesheet" type="text/css" href="iconfont/iconfont.css"/>
	<style type="text/css">
		
		.denglv  marquee{
			height: 100px;
			line-height: 100px;
			font-size:20px;
			color:orange;
						
		}
		.denglv{
			margin: 0 auto;
			width: 875px;
		}		

		.denglv  div{
			height: 369px;
			width:388px;
			position: relative;
			left: 216px;
			top: 75px;
			background: rgba(255,255,255,0.5);
			border-radius: 10px;	
			padding: 50px 0 0 30px;
		}
		
		.denglv div ul{
			font-size: 15px;
			line-height:60px;	
			padding-left:20px ;
		}		
						
		.denglv div ul input{
			width: 250px;
			height: 33px;
			color: rgb(200,200,200);			
			
		
		
		}
        .denglv  div ul i{
        	display: inline-block;
        	width: 50px;
        	height: 38px;
        	background:rgb(200,200,200);
        	color: white;
        	text-align: center;
        	line-height: 34px;         		        	
        }
        
        .denglv div ul li:nth-child(4) input{
        	width: 305px;
        	background: #28b9ff;
        	color: white;
        	height: 35px;
        }
        
        .denglv  div ul a{
        	position: relative;
        	right: -168px;
        	bottom: -21px;
        	color: black;
        }
        .denglv div ul a:hover{
        	color: #28b9ff;
        }
	</style>
	
	
	
	
	
	<body>
	<%
		int flag = (int)request.getSession().getAttribute("flag");
		if (flag == 2)
			out.print("<script>alert('账号密码错误！')</script>");
		else if (flag == 7)
			out.print("<script>alert('密码修改成功！')</script>");
		else if (flag == 13)
			out.print("<script>alert('注册成功！初始密码为000000！！！')</script>");
		else if (flag == 11)
			out.print("<script>alert('你还未登录！')</script>");
		else if (flag == 37)
			out.print("<script>alert('账户已被冻结，无法登录！')</script>");
		request.getSession().setAttribute("flag", 0);
	%>
		
		<div  class="denglv">
		      <marquee>欢迎您!${user.name}</marquee>
             
           
            	<div>
					<form action="<c:url value="/UserLogin"/>" method="post">
            		<ul>
            			<li>密码登录</li>
            	     	<li><i class="iconfont">&#xe6df;</i><input type="text" name="account" id="" value="" /></li>
            		    <li><i class="iconfont">&#xe614;</i><input type="password" name="password" id="" value="" /></li>
            		    <li><input type="submit" name="" id="" value="登&nbsp;&nbsp;录" /></li>           		
						<li><a href="<c:url value="/GoodsShow"/>">主页</a>
							<a href="./forgetPassword.jsp">忘记密码</a>&nbsp;
							<a href="./register.jsp">免费注册</a></li>
            		
            		</ul>
					</form>
            		
            		
            	
             </div>
           
      </div>
   
	</body>
</html>
